Functions


Accessing Control Settings and Data

GetAuxiliaryControlRecord Obtains a handle to a control’s auxiliary control structure.
GetBestControlRect Obtains a control’s optimal size and text placement.
GetControl32BitMaximum Obtains the maximum setting of a control.
GetControl32BitMinimum Obtains the minimum setting of a control.
GetControl32BitValue Obtains the current setting of a control.
GetControlAction Returns a pointer to the action function stored in the contrlAction field of the control structure.
GetControlData Obtains control-specific data.
GetControlDataSize Obtains the size of a control’s tagged data.
GetControlFeatures Obtains the features a control supports.
GetControlMaximum Obtains a control’s maximum setting.
GetControlMinimum Obtains a control’s minimum setting.
GetControlProperty Obtains a piece of data that has been previously associated with a control.
GetControlPropertySize Obtains the size of a piece of data that has previously been associated with a control.
GetControlReference Obtains a control’s current reference value.
GetControlTitle Obtains the title of a control.
GetControlValue Obtains a control’s current setting.
GetControlVariant Returns the variation code specified in the control definition function for a particular control.
IsControlVisible Determines whether a control is visible.
IsValidControlHandle Reports whether a given handle is a control handle.
RemoveControlProperty Removes a piece of data that has been previously associated with a control.
SetControl32BitMaximum Changes the maximum setting of a control and, if appropriate, redraws it accordingly.
SetControl32BitMinimum Changes the minimum setting of a control and, if appropriate, redraws it accordingly.
SetControl32BitValue Changes the current setting of a control and redraws it accordingly.
SetControlAction Sets or changes the action function for a control.
SetControlColor Draws a control using colors other than the default colors used by system software.
SetControlData Sets control-specific data.
SetControlFontStyle Sets the font style for a control.
SetControlMaximum Changes the maximum setting of a control and redraws its indicator or scroll box accordingly.
SetControlMinimum Changes the minimum setting of a control and redraws its indicator or scroll box accordingly.
SetControlProperty Associates data with a control.
SetControlReference Changes a control’s current reference value.
SetControlTitle Changes the title of a control and redraws the control accordingly.
SetControlValue Changes the current setting of a control and redraws it accordingly.
SetControlVisibility Sets the visibility of a control, and any embedded controls, and specifies whether it should be drawn.

Creating and Removing Controls

DisposeControl Removes a control and any of its embedded controls from a window that you wish to keep.
GetNewControl Creates a control from a control resource.
KillControls Removes all of the controls from a window that you wish to keep.
NewControl Creates a control based on parameter data.

Displaying Controls

Draw1Control Draws a control and any embedded controls that are currently visible in the specified window.
DrawControlInCurrentPort Draws a control in the current graphics port.
DrawControls Draws all controls currently visible in the specified window.
GetControlViewSize Obtains the size of the content to which a control’s size is proportioned.
SetControlViewSize Informs the Control Manager of the size of the content to which a control’s size is proportioned.
SetUpControlBackground Sets the background for a control.
SetUpControlTextColor Prepares a control to be drawn with a text color consistent with that of any controls in which it is embedded and with the current theme.
UpdateControls Draws controls in the specified update region of a window.

Embedding Controls

AutoEmbedControl Automatically embeds a control in the smallest appropriate embedder control.
CountSubControls Obtains the number of embedded controls within a control.
CreateRootControl Creates the root control for a specified window.
DumpControlHierarchy Writes a textual representation of the control hierarchy for a specified window into a file.
EmbedControl Embeds one control inside another.
GetIndexedSubControl Obtains a handle to a specified embedded control.
GetRootControl Obtains a handle to a window’s root control.
GetSuperControl Obtains a handle to an embedder control.
SetControlSupervisor Routes mouse-down events to the embedder control.

Handling Events in Controls

FindControl Obtains the location of a mouse-down event in a control.
FindControlUnderMouse Obtains the location of a mouse-down event in a control.
HandleControlClick Responds to cursor movements in a control while the mouse button is down and returns the location of the next mouse-up event.
HandleControlKey Sends a keyboard event to a control with keyboard focus.
IdleControls Performs idle event processing.
TestControl Obtains the control part in which a mouse-down event occurred.
TrackControl Responds to cursor movements in a control while the mouse button is down.

Handling Keyboard Focus

AdvanceKeyboardFocus Advances the keyboard focus to the next focusable control in a window.
ClearKeyboardFocus Removes the keyboard focus for the currently focused control in a window.
GetKeyboardFocus Obtains a handle to the control with the current keyboard focus for a specified window.
ReverseKeyboardFocus Returns keyboard focus to the prior focusable control in a window.
SetKeyboardFocus Sets the current keyboard focus to a specified control part for a window.

Manipulating Controls

ActivateControl Activates a control and any latent embedded controls.
DeactivateControl Deactivates a control and any latent embedded controls.
DragControl Draws and moves an outline of a control or its indicator while the user drags it.
GetControlRegion Obtains the region corresponding to a given control part.
HideControl Makes a control, and any latent embedded controls, invisible.
HiliteControl Changes the highlighting of a control.
IsControlActive Returns whether a control is active.
MoveControl Moves a control within its window.
SendControlMessage Sends a message to a control definition function.
ShowControl Makes an invisible control, and any latent embedded controls, visible.
SizeControl Changes the size of a control’s rectangle.

Miscellaneous

AddDataBrowserItems
AddDataBrowserListViewColumn
AddDataBrowserTableViewColumn
AutoSizeDataBrowserListViewColumns
CallControlActionProc
CallControlDefProc
CallControlEditTextValidationProc
CallControlKeyFilterProc
CallControlUserPaneActivateProc
CallControlUserPaneBackgroundProc
CallControlUserPaneDrawProc
CallControlUserPaneFocusProc
CallControlUserPaneHitTestProc
CallControlUserPaneIdleProc
CallControlUserPaneKeyDownProc
CallControlUserPaneTrackingProc
ChangeControlPropertyAttributes
CloseDataBrowserContainer
CopyControlTitleAsCFString
CreateBevelButtonControl
CreateBevelButtonControl_New
CreateChasingArrowsControl
CreateCheckBoxControl
CreateCheckBoxControl_New
CreateCheckGroupBoxControl
CreateCheckGroupBoxControl_New
CreateClockControl
CreateCustomControl
CreateDataBrowserControl
CreateDisclosureButtonControl
CreateDisclosureTriangleControl
CreateDisclosureTriangleControl_New
CreateEditTextControl
CreateEditTextControl_New
CreateGroupBoxControl
CreateGroupBoxControl_New
CreateIconControl
CreateImageWellControl
CreateListBoxControl
CreateLittleArrowsControl
CreatePictureControl
CreatePlacardControl
CreatePopupArrowControl
CreatePopupButtonControl
CreatePopupButtonControl_New
CreatePopupGroupBoxControl
CreatePopupGroupBoxControl_New
CreateProgressBarControl
CreatePushButtonControl
CreatePushButtonControl_New
CreatePushButtonWithIconControl
CreatePushButtonWithIconControl_New
CreateRadioButtonControl
CreateRadioButtonControl_New
CreateRadioGroupControl
CreateRelevanceBarControl
CreateRoundButtonControl
CreateScrollBarControl
CreateScrollingTextBoxControl
CreateSeparatorControl
CreateSliderControl
CreateStaticTextControl
CreateStaticTextControl_New
CreateTabsControl
CreateTabsControl_New
CreateUserPaneControl
CreateWindowHeaderControl
DisableControl
DisposeControlActionUPP
DisposeControlCNTLToCollectionUPP
DisposeControlColorUPP
DisposeControlDefUPP
DisposeControlEditTextValidationUPP
DisposeControlKeyFilterUPP
DisposeControlUserPaneActivateUPP
DisposeControlUserPaneBackgroundUPP
DisposeControlUserPaneDrawUPP
DisposeControlUserPaneFocusUPP
DisposeControlUserPaneHitTestUPP
DisposeControlUserPaneIdleUPP
DisposeControlUserPaneKeyDownUPP
DisposeControlUserPaneTrackingUPP
DisposeDataBrowserAcceptDragUPP
DisposeDataBrowserAddDragItemUPP
DisposeDataBrowserCompareUPP
DisposeDataBrowserDrawItemUPP
DisposeDataBrowserEditItemUPP
DisposeDataBrowserGetContextualMenuUPP
DisposeDataBrowserGetHelpContentUPP
DisposeDataBrowserGetSetItemDataUPP
DisposeDataBrowserHitTestUPP
DisposeDataBrowserItemAcceptDragUPP
DisposeDataBrowserItemDragRgnUPP
DisposeDataBrowserItemNotificationUPP
DisposeDataBrowserItemReceiveDragUPP
DisposeDataBrowserItemUPP
DisposeDataBrowserPostProcessDragUPP
DisposeDataBrowserReceiveDragUPP
DisposeDataBrowserSelectContextualMenuUPP
DisposeDataBrowserTrackingUPP
EnableControl
EnableDataBrowserEditCommand
ExecuteDataBrowserEditCommand
FlattenControl
ForEachDataBrowserItem
GDBShowControlHierarchy
GDBShowControlInfo
GetBevelButtonContentInfo
GetBevelButtonMenuHandle
GetBevelButtonMenuValue
GetControlBounds
GetControlByID
GetControlClickActivation
GetControlColorTable
GetControlCommandID
GetControlComponentInstance
GetControlDataHandle
GetControlDefinition
GetControlHandleFromCookie
GetControlHilite
GetControlID
GetControlKind
GetControlOwner
GetControlOwningWindowControlList
GetControlPopupMenuHandle
GetControlPopupMenuID
GetControlPropertyAttributes
GetDataBrowserActiveItems
GetDataBrowserCallbacks
GetDataBrowserColumnViewDisplayType
GetDataBrowserColumnViewPath
GetDataBrowserColumnViewPathLength
GetDataBrowserCustomCallbacks
GetDataBrowserEditData
GetDataBrowserEditItem
GetDataBrowserEditText
GetDataBrowserHasScrollBars
GetDataBrowserItemCount
GetDataBrowserItemDataBooleanValue
GetDataBrowserItemDataButtonValue
GetDataBrowserItemDataDateTime
GetDataBrowserItemDataDrawState
GetDataBrowserItemDataIconTransform
GetDataBrowserItemDataLongDateTime
GetDataBrowserItemDataMaximum
GetDataBrowserItemDataMenuRef
GetDataBrowserItemDataMinimum
GetDataBrowserItemDataProperty
GetDataBrowserItemDataRGBColor
GetDataBrowserItemDataText
GetDataBrowserItemDataValue
GetDataBrowserItemPartBounds
GetDataBrowserItemState
GetDataBrowserItems
GetDataBrowserListViewDisclosureColumn
GetDataBrowserListViewHeaderBtnHeight
GetDataBrowserListViewUsePlainBackground
GetDataBrowserPropertyFlags
GetDataBrowserScrollBarInset
GetDataBrowserScrollPosition
GetDataBrowserSelectionAnchor
GetDataBrowserSelectionFlags
GetDataBrowserSortOrder
GetDataBrowserSortProperty
GetDataBrowserTableViewColumnCount
GetDataBrowserTableViewColumnPosition
GetDataBrowserTableViewColumnProperty
GetDataBrowserTableViewColumnWidth
GetDataBrowserTableViewGeometry
GetDataBrowserTableViewHiliteStyle
GetDataBrowserTableViewItemID
GetDataBrowserTableViewItemRow
GetDataBrowserTableViewItemRowHeight
GetDataBrowserTableViewNamedColumnWidth
GetDataBrowserTableViewRowHeight
GetDataBrowserTarget
GetDataBrowserUserState
GetDataBrowserViewStyle
GetImageWellContentInfo
GetNextControl
GetTabContentRect
HandleControlContextualMenuClick
HandleControlDragReceive
HandleControlDragTracking
HandleControlSetCursor
InitDataBrowserCallbacks
InitDataBrowserCustomCallbacks
InvokeControlActionUPP
InvokeControlCNTLToCollectionUPP
InvokeControlColorUPP
InvokeControlDefUPP
InvokeControlEditTextValidationUPP
InvokeControlKeyFilterUPP
InvokeControlUserPaneActivateUPP
InvokeControlUserPaneBackgroundUPP
InvokeControlUserPaneDrawUPP
InvokeControlUserPaneFocusUPP
InvokeControlUserPaneHitTestUPP
InvokeControlUserPaneIdleUPP
InvokeControlUserPaneKeyDownUPP
InvokeControlUserPaneTrackingUPP
InvokeDataBrowserAcceptDragUPP
InvokeDataBrowserAddDragItemUPP
InvokeDataBrowserCompareUPP
InvokeDataBrowserDrawItemUPP
InvokeDataBrowserEditItemUPP
InvokeDataBrowserGetContextualMenuUPP
InvokeDataBrowserGetHelpContentUPP
InvokeDataBrowserGetSetItemDataUPP
InvokeDataBrowserHitTestUPP
InvokeDataBrowserItemAcceptDragUPP
InvokeDataBrowserItemDragRgnUPP
InvokeDataBrowserItemNotificationUPP
InvokeDataBrowserItemReceiveDragUPP
InvokeDataBrowserItemUPP
InvokeDataBrowserPostProcessDragUPP
InvokeDataBrowserReceiveDragUPP
InvokeDataBrowserSelectContextualMenuUPP
InvokeDataBrowserTrackingUPP
IsAutomaticControlDragTrackingEnabledForWindow
IsControlDragTrackingEnabled
IsControlEnabled
IsControlHilited
IsDataBrowserItemSelected
MoveDataBrowserSelectionAnchor
NewControlActionProc
NewControlActionUPP
NewControlCNTLToCollectionUPP
NewControlColorUPP
NewControlDefProc
NewControlDefUPP
NewControlEditTextValidationProc
NewControlEditTextValidationUPP
NewControlKeyFilterProc
NewControlKeyFilterUPP
NewControlUserPaneActivateProc
NewControlUserPaneActivateUPP
NewControlUserPaneBackgroundProc
NewControlUserPaneBackgroundUPP
NewControlUserPaneDrawProc
NewControlUserPaneDrawUPP
NewControlUserPaneFocusProc
NewControlUserPaneFocusUPP
NewControlUserPaneHitTestProc
NewControlUserPaneHitTestUPP
NewControlUserPaneIdleProc
NewControlUserPaneIdleUPP
NewControlUserPaneKeyDownProc
NewControlUserPaneKeyDownUPP
NewControlUserPaneTrackingProc
NewControlUserPaneTrackingUPP
NewDataBrowserAcceptDragUPP
NewDataBrowserAddDragItemUPP
NewDataBrowserCompareUPP
NewDataBrowserDrawItemUPP
NewDataBrowserEditItemUPP
NewDataBrowserGetContextualMenuUPP
NewDataBrowserGetHelpContentUPP
NewDataBrowserGetSetItemDataUPP
NewDataBrowserHitTestUPP
NewDataBrowserItemAcceptDragUPP
NewDataBrowserItemDragRgnUPP
NewDataBrowserItemNotificationUPP
NewDataBrowserItemReceiveDragUPP
NewDataBrowserItemUPP
NewDataBrowserPostProcessDragUPP
NewDataBrowserReceiveDragUPP
NewDataBrowserSelectContextualMenuUPP
NewDataBrowserTrackingUPP
OpenDataBrowserContainer
RegisterControlDefinition
RemoveDataBrowserItems
RemoveDataBrowserTableViewColumn
RevealDataBrowserItem
SetAutomaticControlDragTrackingEnabledForWindow
SetBevelButtonContentInfo
SetBevelButtonGraphicAlignment
SetBevelButtonMenuValue
SetBevelButtonTextAlignment
SetBevelButtonTextPlacement
SetBevelButtonTransform
SetControlBounds
SetControlColorProc
SetControlColorTable
SetControlCommandID
SetControlDataHandle
SetControlDefProc
SetControlDragTrackingEnabled
SetControlID
SetControlOwner
SetControlPopupMenuHandle
SetControlPopupMenuID
SetControlTitleWithCFString
SetDataBrowserActiveItems
SetDataBrowserCallbacks
SetDataBrowserColumnViewDisplayType
SetDataBrowserColumnViewPath
SetDataBrowserCustomCallbacks
SetDataBrowserEditItem
SetDataBrowserEditText
SetDataBrowserHasScrollBars
SetDataBrowserItemDataBooleanValue
SetDataBrowserItemDataButtonValue
SetDataBrowserItemDataDateTime
SetDataBrowserItemDataDrawState
SetDataBrowserItemDataIcon
SetDataBrowserItemDataIconTransform
SetDataBrowserItemDataItemID
SetDataBrowserItemDataLongDateTime
SetDataBrowserItemDataMaximum
SetDataBrowserItemDataMenuRef
SetDataBrowserItemDataMinimum
SetDataBrowserItemDataRGBColor
SetDataBrowserItemDataText
SetDataBrowserItemDataValue
SetDataBrowserListViewDisclosureColumn
SetDataBrowserListViewHeaderBtnHeight
SetDataBrowserListViewUsePlainBackground
SetDataBrowserPropertyFlags
SetDataBrowserScrollBarInset
SetDataBrowserScrollPosition
SetDataBrowserSelectedItems
SetDataBrowserSelectionFlags
SetDataBrowserSortOrder
SetDataBrowserSortProperty
SetDataBrowserTableViewColumnPosition
SetDataBrowserTableViewColumnWidth
SetDataBrowserTableViewGeometry
SetDataBrowserTableViewHiliteStyle
SetDataBrowserTableViewItemRow
SetDataBrowserTableViewItemRowHeight
SetDataBrowserTableViewNamedColumnWidth
SetDataBrowserTableViewRowHeight
SetDataBrowserTarget
SetDataBrowserUserState
SetDataBrowserViewStyle
SetDisclosureTriangleLastValue
SetImageWellContentInfo
SetImageWellTransform
SetNextControl
SetTabEnabled
SortDataBrowserContainer
UnflattenControl
UpdateDataBrowserItems
dragcontrol
findcontrol
getcontroltitle
newcontrol
setcontroltitle
testcontrol
trackcontrol

© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)